package com.ruoyi.goods.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 商品信息管理对象 bm_specification
 * 
 * @author ruoyi
 * @date 2023-08-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BmGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String goodsCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String warehouseCode;

    /** 商品分类id */
    @Excel(name = "商品分类id")
    private Long categoryId;

    /** 品牌id */
    @Excel(name = "品牌id")
    private Long brandId;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String goodsDetails;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsMark;

    /** 删除标记 0.未删除 1.已删除 */
    @Excel(name = "删除标记 0.未删除 1.已删除")
    private Long isDeleted;
    @Excel(name = "商品规格")
    private List<BmSpecification> bmSpecificationList;
    @Excel(name = "商品类别")
    private List<BmCategory> bmCategoryList;
    @Excel(name = "商品品牌")
    private List<BmBrand> bmBrandList;
    private List<BmWarehouse> bmWarehouseList;
    private List<SysMechanism> sysMechanismList;
    private List<BmInordergoodslist> bmInordergoodslist;
    private List<BmInorderlist> bmInorderlistList;
    private List<BmPreferential> bmPreferentiallist;
    @Excel(name = "商品规格数量")
    private Integer count;
    private Integer pageNum;
    private Integer pageSize;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsCode", getGoodsCode())
            .append("goodsName", getGoodsName())
            .append("warehouseCode", getWarehouseCode())
            .append("categoryId", getCategoryId())
            .append("brandId", getBrandId())
            .append("sort", getSort())
            .append("goodsDetails", getGoodsDetails())
            .append("goodsMark", getGoodsMark())
            .append("createTime", getCreateTime())
            .append("isDeleted", getIsDeleted())
            .append("bmSpecificationList", getBmSpecificationList())
            .append("bmCategoryList", getBmCategoryList())
            .append("bmBrandList", getBmBrandList())
            .append("bmWarehouseList", getBmBrandList())
            .append("sysMechanismList", getBmBrandList())
            .append("bmInordergoodslist", getBmInordergoodslist())
            .append("bmInorderlistList", getBmInorderlistList())
            .append("bmPreferentiallist", getBmPreferentiallist())
            .append("count",getCount())
            .append("pageNum", getPageNum())
            .append("pageSize", getPageSize())
            .toString();
    }

}
